
const pkg = state => state.pkg;
const app = state => state.app;
const user = state => state.app.user;
const additional = state => state.additional;
const device = state => state.app.device;
const effect = state => state.app.effect;
const routerHeap = state => state.app.router;


const customer_thead = (state) => {
    let c = [];
    if(state.app.user&&state.app.user.field_title){
        state.app.user.field_title.forEach((v,i)=>{
            if(v.has==1){
              c.push({key:v.field,title:v.name})
            }
        })
    }
    return c;
};

export {
  pkg,
  app,
  user,
  routerHeap,
  additional,
  device,
  effect,
  customer_thead,
}
